package com.work.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@TableName(value = "user_info")
@Data
public class UserBean implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    @TableField("user_name")
    private String userName;
    @TableField("user_pwd")
    private String userPwd;
    @TableField("user_type")
    private String userType;
    @TableField("user_realname")
    private String userRealName;

    public UserBean(String userName, String userPwd, String userType, String userRealName) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userType = userType;
        this.userRealName = userRealName;
    }
}
